/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-08-15 20:36:28
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-08-15 20:53:52
 * @FilePath: \webpack\01.learn_webpack\8.babel的使用\src\reactMain.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { Component } from "react";
import ReactDom from "react-dom";
class App extends Component {
    constructor(props) {
        super(props);
        this.state = {
            message: "hello-world"
        };
    }
    render() {
        return (
            <div>
                <h2>{this.state.message}</h2>
            </div>
        );
    }
}
ReactDom.render(<App />, document.getElementById("app"));
